﻿
<%@ Page Language="C#" Theme="Default" MasterPageFile="~/MasterPages/admin.master" AutoEventWireup="true"  CodeFile="Kvt.aspx.cs" Inherits="Kvt" Title="Kvt List" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">Kvt List</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
		<data:GridViewSearchPanel ID="GridViewSearchPanel1" runat="server" GridViewControlID="GridView1" PersistenceMethod="Session" />
		<br />
		<data:EntityGridView ID="GridView1" runat="server"			
				AutoGenerateColumns="False"					
				OnSelectedIndexChanged="GridView1_SelectedIndexChanged"
				DataSourceID="KvtDataSource"
				DataKeyNames="Id"
				AllowMultiColumnSorting="false"
				DefaultSortColumnName="" 
				DefaultSortDirection="Ascending"	
				ExcelExportFileName="Export_Kvt.xls"  		
			>
			<Columns>
				<asp:CommandField ShowSelectButton="True" ShowEditButton="True" />				
				<asp:BoundField DataField="I1InputDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="I1 Input Date" SortExpression="I1InputDate"  />
				<asp:BoundField DataField="I9KhiVaoDoGppNhap" HeaderText="I9 Khi Vao Do Gpp Nhap" SortExpression="I9KhiVaoDoGPPNhap"  />
				<asp:BoundField DataField="I21XeBonFiqBupro" HeaderText="I21 Xe Bon Fiq Bupro" SortExpression="I21XeBonFIQBupro"  />
				<asp:BoundField DataField="I34NhapCondBh" HeaderText="I34 Nhap Cond Bh" SortExpression="I34NhapCondBH"  />
				<asp:BoundField DataField="I35MeBhSoKctv" HeaderText="I35 Me Bh So Kctv" SortExpression="I35MeBHSoKCTV"  />
				<asp:BoundField DataField="I36NhapCondBhTuTk125" HeaderText="I36 Nhap Cond Bh Tu Tk125" SortExpression="I36NhapCondBHTuTK125"  />
				<asp:BoundField DataField="I37NhapLpgTuTk107" HeaderText="I37 Nhap Lpg Tu Tk107" SortExpression="I37NhapLPGTuTK107"  />
				<asp:BoundField DataField="I38Fqic1011" HeaderText="I38 Fqic1011" SortExpression="I38FQIC1011"  />
				<asp:BoundField DataField="I39Fqic1012" HeaderText="I39 Fqic1012" SortExpression="I39FQIC1012"  />
				<asp:BoundField DataField="I41XuatCondBhTheoMe" HeaderText="I41 Xuat Cond Bh Theo Me" SortExpression="I41XuatCondBHTheoMe"  />
				<asp:BoundField DataField="I42XuatCondBhLenhXuatSo" HeaderText="I42 Xuat Cond Bh Lenh Xuat So" SortExpression="I42XuatCondBHLenhXuatSo"  />
				<asp:BoundField DataField="I43MeTdXuatBupro" HeaderText="I43 Me Td Xuat Bupro" SortExpression="I43METdXuatBupro"  />
				<asp:BoundField DataField="I44TankXuatBupro" HeaderText="I44 Tank Xuat Bupro" SortExpression="I44TankXuatBupro"  />
				<asp:BoundField DataField="I45GiamDinhXuatBupro" HeaderText="I45 Giam Dinh Xuat Bupro" SortExpression="I45GiamDinhXuatBupro"  />
				<asp:BoundField DataField="I46XuatKhacLpg" HeaderText="I46 Xuat Khac Lpg" SortExpression="I46XuatKhacLPG"  />
				<asp:BoundField DataField="I47XuatKhacCondBh" HeaderText="I47 Xuat Khac Cond Bh" SortExpression="I47XuatKhacCondBH"  />
				<asp:BoundField DataField="I48XaDotLpg" HeaderText="I48 Xa Dot Lpg" SortExpression="I48XaDotLPG"  />
				<asp:BoundField DataField="I49XaDotCondBh" HeaderText="I49 Xa Dot Cond Bh" SortExpression="I49XaDotCondBH"  />
				<asp:BoundField DataField="I52XaDotKahxntlpg" HeaderText="I52 Xa Dot Kahxntlpg" SortExpression="I52XaDotKAHXNTLPG"  />
				<asp:BoundField DataField="I53XaDotKahxntCond" HeaderText="I53 Xa Dot Kahxnt Cond" SortExpression="I53XaDotKAHXNTCond"  />
				<asp:BoundField DataField="I54XuatCondBhTank" HeaderText="I54 Xuat Cond Bh Tank" SortExpression="I54XuatCondBHTank"  />
				<asp:BoundField DataField="I55XuatCondBhGiamDinh" HeaderText="I55 Xuat Cond Bh Giam Dinh" SortExpression="I55XuatCondBHGiamDinh"  />
				<asp:BoundField DataField="I56TonCondBh" HeaderText="I56 Ton Cond Bh" SortExpression="I56TonCondBH"  />
				<asp:BoundField DataField="I57TonBupro" HeaderText="I57 Ton Bupro" SortExpression="I57TonBupro"  />
				<asp:BoundField DataField="I58TenMeMncs" HeaderText="I58 Ten Me Mncs" SortExpression="I58TenMeMNCS"  />
				<asp:BoundField DataField="I59VaoDoz3002" HeaderText="I59 Vao Doz3002" SortExpression="I59VaoDOZ3002"  />
				<asp:BoundField DataField="I60RaDoz7900" HeaderText="I60 Ra Doz7900" SortExpression="I60RaDOZ7900"  />
				<asp:BoundField DataField="I61MeMncsSoLift" HeaderText="I61 Me Mncs So Lift" SortExpression="I61MeMNCSSoLift"  />
				<asp:BoundField DataField="I62XuatMeMncs" HeaderText="I62 Xuat Me Mncs" SortExpression="I62XuatMeMNCS"  />
				<asp:BoundField DataField="I63TonCondNcsTaiKctv" HeaderText="I63 Ton Cond Ncs Tai Kctv" SortExpression="I63TonCondNCSTaiKCTV"  />
				<asp:BoundField DataField="I64XuatCondNcsTheoTank" HeaderText="I64 Xuat Cond Ncs Theo Tank" SortExpression="I64XuatCondNCSTheoTank"  />
				<asp:BoundField DataField="I65XuatCondNcsTheoGiamDinh" HeaderText="I65 Xuat Cond Ncs Theo Giam Dinh" SortExpression="I65XuatCondNCSTheoGiamDinh"  />
				<asp:BoundField DataField="I66SuKienVanHanh" HeaderText="I66 Su Kien Van Hanh" SortExpression="I66SuKienVanHanh"  />
				<asp:BoundField DataField="I67NoteBcn" HeaderText="I67 Note Bcn" SortExpression="I67NoteBCN"  />
				<asp:BoundField DataField="I68NoteQlsplbh" HeaderText="I68 Note Qlsplbh" SortExpression="I68NoteQLSPLBH"  />
				<asp:BoundField DataField="I69NoteCondBhMe" HeaderText="I69 Note Cond Bh Me" SortExpression="I69NoteCondBHMe"  />
				<asp:BoundField DataField="I70NoteGdme" HeaderText="I70 Note Gdme" SortExpression="I70NoteGDME"  />
				<asp:BoundField DataField="I71NoteMncs" HeaderText="I71 Note Mncs" SortExpression="I71NoteMNCS"  />
				<data:HyperLinkField HeaderText="Status" DataNavigateUrlFormatString="StatusEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="StatusSource" DataTextField="Name" />
				<data:HyperLinkField HeaderText="Input User" DataNavigateUrlFormatString="UserEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="InputUserSource" DataTextField="Username" />
				<data:HyperLinkField HeaderText="Hid" DataNavigateUrlFormatString="KvtEdit.aspx?Id={0}" DataNavigateUrlFields="Id" DataContainer="HidSource" DataTextField="I1InputDate" />
				<asp:BoundField DataField="CreatedDate" DataFormatString="{0:d}" HtmlEncode="False" HeaderText="Created Date" SortExpression="CreatedDate"  />
			</Columns>
			<EmptyDataTemplate>
				<b>No Kvt Found!</b>
			</EmptyDataTemplate>
		</data:EntityGridView>
		<br />
		<asp:Button runat="server" ID="btnKvt" OnClientClick="javascript:location.href='KvtEdit.aspx'; return false;" Text="Add New"></asp:Button>
		<data:KvtDataSource ID="KvtDataSource" runat="server"
			SelectMethod="GetPaged"
			EnablePaging="True"
			EnableSorting="True"
			EnableDeepLoad="True"
			>
			<DeepLoadProperties Method="IncludeChildren" Recursive="False">
	            <Types>
					<data:KvtProperty Name="Status"/> 
					<data:KvtProperty Name="User"/> 
					<data:KvtProperty Name="Kvt"/> 
					<%--<data:KvtProperty Name="KvtCollection" />--%>
				</Types>
			</DeepLoadProperties>
			<Parameters>
				<data:CustomParameter Name="WhereClause" Value="" ConvertEmptyStringToNull="false" />
				<data:CustomParameter Name="OrderByClause" Value="" ConvertEmptyStringToNull="false" />
				<asp:ControlParameter Name="PageIndex" ControlID="GridView1" PropertyName="PageIndex" Type="Int32" />
				<asp:ControlParameter Name="PageSize" ControlID="GridView1" PropertyName="PageSize" Type="Int32" />
				<data:CustomParameter Name="RecordCount" Value="0" Type="Int32" />
			</Parameters>
		</data:KvtDataSource>
	    		
</asp:Content>



